<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/21
 * Time: 16:16
 */
//获取参数
$owan_type              = $route->bodyParams['owan_type'];               //类型 0-考勤通知 1-工资通知
$owan_content           = $route->bodyParams['owan_content'];            //通知内容
$owan_yearMonth         = $route->bodyParams['owan_yearMonth'];          //年月
$owan_userid            = $route->bodyParams['owan_userid'];             //用户id
$owan_oesid             = $route->bodyParams['owan_oesid'];              //发送通知的机构id
$owan_wid               = $route->bodyParams['owan_wid'];              //关联考勤记录或者工资记录的id
$create_time            = time();
//写入数组
$insertArr = [
    'owan_type'             => $owan_type,
    'owan_content'          => $owan_content,
    'owan_yearMonth'        => $owan_yearMonth,
    'owan_userid'           => $owan_userid,
    'owan_oesid'            => $owan_oesid,
    'create_time'           => $create_time,
    'owan_wid'              => $owan_wid,
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_wage_attendance_notice",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );